# API Reference

Canonic aims to support and follow the same web api standards as you would expect from any modern browser.

Currently Canonic supports the following:

## Window

The Window interface represents a window containing a document; the document property points to the document loaded in that window.

- **Window.location**
  
  Gets/sets the location, or current URL, of the window object.

- **Window.navigator**

  Returns a reference to the navigator object.

- **Window.innerScreenX**

  Returns the horizontal (X) coordinate of the top-left corner of the window's viewport, in screen coordinates. 

- **Window.innerScreenY**

  Returns the vertical  (Y) coordinate of the top-left corner of the window's viewport, in screen coordinates. 

- **Window.innerWidth**

  Gets the width of the content area of the browser window including, if rendered, the vertical scrollbar.

- **Window.innerHeight**

  Gets the height of the content area of the browser window including, if rendered, the horizontal scrollbar.

- **Window.outerWidth**

  Gets the width of the outside of the browser window.

- **Window.outerHeight**

  Gets the height of the outside of the browser window.

- **Window.document**

  Returns a reference to the document that the window contains.

- **Window.theme**

  Returns a string with either `light` or `dark` as the value

